package com.cc.blog.vo.params;

import lombok.Data;

@Data
public class PageParams {
    private int page = 1;

    private int pageSize = 10;

    /**
     * 文章标签和种类查询对应标签和种类
     */
    private Long categoryId;

    private Long tagId;


    /**
     * 文章归档查询对应的年月
     */
    private String year;

    private String month;

    public String getMonth(){
        return month != null && month.length() == 1 ? "0"+month : month;
    }
}
